<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <%@taglib prefix="s" uri="/struts-tags"%>
 <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>订单</title>
</head>
<body>

<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
               <h3 class="text-center">我的订单</h3>
            </div>
        </div>
		<s:if test="#request.orderMainList != null && #request.orderMainList.size() > 0">
			<table class="table table-bordered text-center table-hover">
					<thead>
						<tr>
									<th class="text-center">订单编号</th>
									<th class="text-center"订单时间</th>
									<th class="text-center">订单状态</th>
									<th class="text-center">查看详细</th>
						</tr>
					</thead>
					<tbody>
							<s:iterator id="var_order" value="#request.orderMainList">
								<tr>
									<td>${var_order.orderId }</td>
									<td>${var_order.orderTime }</td>
									<td>${var_order.orderState }</td>
									<td>
										<button type="button" onclick="btn_show_order(${var_order.orderId})" class="btn btn-info">
											<span class="glyphicon glyphicon-hand-left">查看</span>
										</button>
									</td>
								</tr>
							</s:iterator>
					</tbody>
			</table>
			<ul class="nav nav-pills nav-justified ">
				<li class="bg-info"><a href="javaScript:history.back()"><h3>继续租赁</h3></a></li>
			</ul>
		</s:if>
		<s:else>
			<h4 class="text-center">没有任何订单信息!快去<a href="index">租赁</a>吧</h4>
		</s:else>
		
</div>

			
</body>
</html>